<?php

require_once 'Zend/Form/Element/Text.php';

class ZFKiller_Form_Element_Email extends Zend_Form_Element_Text {

	public function __construct($spec, $options = null) {
		ZFKiller_Form_Element::formatDefaultOptions($spec, $options);

		if(!isset($options['label'])) {
			$options['label'] = 'Email';
		}

		parent::__construct($spec, $options);

		ZFKiller_Form_Element::formatElementAsText($this);
		$this->addValidator('emailAddress');
	}

}